<script type="text/javascript">
    $(function () {
        // alert($("#xsd_zgjgId").val());
         if($("#xsd_zgjgId").val() == 23){
           $("input[name='xsd.xslx']:eq(2)").attr("checked",true);
       }else if($("#xsd_zgjgId").val() == 37){
            $("input[name='xsd.xslx']:eq(2)").attr("checked",true);
       } else{
            $("input[name='xsd.xslx']:eq(0)").attr("checked",true);
        }
        $("[name='xsd.xslx.label']").dblclick(function () {
                var title = "新增销售单";
                var href = $.webPath() + "/xsgl/xsdgl/xsdgl_content?xslx=" + $("input[name='xsd.xslx']:checked").val();
                xsdhref = $.webPath() + "/xsgl/xsdgl/add_xsd";
                $(xslx_win).window('close');
                xsd_showDialog(title, href);
        });
    });
</script>
<div id="xsd_xslx">
    <form method="post" id="xslxForm">
        <input type="hidden" id="xsd_zgjgId" value="${(zgjgId)!}"/>
        <input name="xsd.id" type="hidden" value="${(xsd.id)!''}"/>
        <table class="tb">
            <col width="10%"/>
            <tr style="height: 20px;"></tr>
            <tr style="height: 40px">
                <td id="_xslx" style="vertical-align: middle;font-size:13px;font-weight:bold;"
                    RepeatDirection="Vertical">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
                    <label name="xsd.xslx.label"><input name="xsd.xslx" type="radio" value="htxs" <#if (xsd.xslx)?? && xsd.xslx=='htxs'>checked</#if>
                                  style="vertical-align: middle;font-size:12px;font-weight:bold"/>合同销售</label> <br> <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
                    <label name="xsd.xslx.label"><input name="xsd.xslx" type="radio" value="kcls"
                                  <#if (xsd.xslx)?? && xsd.xslx=='kcls'>checked</#if>
                                  style="vertical-align: middle;font-size:12px;font-weight:bold"/>库存零售</label> <br> <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
                    <label name="xsd.xslx.label"><input name="xsd.xslx" type="radio" value="bgxs"
                                  <#if (xsd.xslx)?? && xsd.xslx=='bgxs'>checked</#if>
                                  style="vertical-align: middle;font-size:12px;font-weight:bold"/>保供销售</label>

                </td>
            </tr>
        </table>
    </form>
</div>